package com.azt.exception;

/**
 * 服务层异常处理
 * Created by LiQZ on 2017/3/15.
 */
public class ServiceException extends RuntimeException {

    private int code;
    private String message;

    public ServiceException(int code) {
        this.code = code;
    }

    public ServiceException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
